<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>卖家-修改个人信息</title>
<link href="<?php echo $this->_webroot('/user/css/common.css'); ?>" rel="stylesheet" type="text/css" />
<link href="<?php echo $this->_webroot('/user/css/content1.css'); ?>" rel="stylesheet" type="text/css" />
<script src="<?php echo $this->_webroot('/user/js/jquery-1.7.1.min.js'); ?>" type="text/javascript"></script>
<script src="<?php echo $this->_webroot('/user/js/common.js'); ?>" type="text/javascript"></script>

<style type="text/css">
th { background:#EFEFEF }
.edit span { background:#efefef; }
.search { margin:5px; }
.search input { color:#444; }
td.img img { cursor:pointer }
</style>
 
</head>
<body>
<psp:tags     htmlname='user_topnav1'  iconname='usertopnav1' />
<psp:tags     htmlname='user_topsearch'  iconname='usertopsearch' />

<div class="main">
	<div class="main-left">
    	<div class="title">会员管理中心</div>
        <psp:tags     htmlname='user_menulist'  iconname='usermenulist' />
    </div>
<link href="<?php echo $this->_webroot('/user/css/shoprequest.css'); ?>" rel="stylesheet" type="text/css" />   
    <div class="main-right main_right">
	

            <div class="cont">
		<div class="bigapart">
			<div class="title_uc"><h3>评价</h3></div>
   <hr />
			<form action="<?php echo $this->_url('usershop/shopcreditadd/?');?>order_id=<?php echo $order_id;?>&t=<?php echo $t;?>" name="form1" method="post" onsubmit="return check();">
				<table width="98%" class="form_table_02">
					<tr class="center">
						<th class="hor">被评价人</th>
						<td class="textleft"><?php echo  $result['0']['b']['user_name'];?></td>
					</tr>
					<tr class="center">
						<th class="hor">商品信息</th>
						<td class=" textleft"><a href="<?php echo $this->_url('shop/productshow/');?><?php echo $result['0']['c']['goods_id'];?>" target="_blank" style="color:#0044DD;"><?php echo  $result['0']['c']['goods_name'];?></a></td>
					</tr>

				</table>
    <table width="100%" cellpadding="0" cellspacing="0">
    	<tbody>
      <tr>
      	<th width="150px" class="textleft">我要评价</th>
       <th></th>
      </tr>
      <tr>
        <td width="150px">评价等级</td>
        <td><?php foreach($credit as $key=>$val){?>
							&nbsp;&nbsp;&nbsp;<input type="radio" name="data[grade]" value="<?php echo $key;?>"><?php echo $val;?>
							<?php }?></td>
      </tr>
      <tr>
        <td>评价内容</td>
        <td><textarea rows="4" cols="50" name="data[content]" id="content" onkeyup="this.value=this.value.slice(0,300);"></textarea></td>
      </tr>
      <tr>
        <td></td>
        <td><input type="submit" value="提交"/></td>
      </tr>
     </tbody>
    </table>
			</form></div>
			  
            </div>
	
	

        

    </div>
    <div class="clear"></div>
</div>

<div class="footer">
    <psp:tags     htmlname='user_footer_helper'  iconname='userfooterhelper' />

</div>
<script language="JavaScript">
function Trim(center) {
	return center.replace(/\s+$|^\s+/g,"");
}
function check(){
	var sex_obj = document.getElementsByName('data[grade]');
	var temp_sex = false;
	for(var i = 0; i < sex_obj.length; i ++){
		if(sex_obj[i].checked){
			var sex = sex_obj[i].value;
			temp_sex = true;
			break;
		}
	}
	if(temp_sex == false){
		alert("请选择评价等级");
		return false;
	}
	var center = Trim(document.form1.content.value);
	if(center == ""){
		alert("解释内容不能为空！");
		document.form1.content.value = center;
		return false;
	}
	var textareac = document.getElementById("textareac");
	if(textareac.value.length>300){
		alert("输入字数超长");
		textareac.focus();
		return false;
	}
	return false;
}
</script>
</body>
</html>